QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TEMPLATE = app
TARGET = littlevgl_qml


INCLUDEPATH += $$PWD/lvgl

DEFINES += LV_CONF_INCLUDE_SIMPLE

include($$PWD/lvgl.pri)
include($$PWD/lvgl_drivers.pri)
include($$PWD/lvgl_examples.pri)

# build dir
BuildDir = build

CONFIG(debug, debug|release) {
    DESTDIR = $$PWD/$$BuildDir/debug
    OBJECTS_DIR = $$PWD/$$BuildDir/debug/.obj
    MOC_DIR = $$PWD/$$BuildDir/debug/.moc
    RCC_DIR = $$PWD/$$BuildDir/debug/.rcc
    UI_DIR = $$PWD/$$BuildDir/debug/.ui
} else {
    DESTDIR = $$PWD/$$BuildDir/release
    OBJECTS_DIR = $$PWD/$$BuildDir/release/.obj
    MOC_DIR = $$PWD/$$BuildDir/release/.moc
    RCC_DIR = $$PWD/$$BuildDir/release/.rcc
    UI_DIR = $$PWD/$$BuildDir/release/.ui
}

SOURCES += \
        main.cpp \
        mainwindow.cpp \
        lvgl_main.c

HEADERS += mainwindow.h \
           lv_conf.h \
           lv_drv_conf.h \
           lv_ex_conf.h \
           lvgl_main.h

